<template>
  <div class="container">
    <el-button @click="testToast(1)">打开Toast</el-button>
    <el-button @click="testToast(2)">关闭Toast</el-button>
    <div>
      <SvgIcon name="test" class="test"></SvgIcon>
    </div>
  </div>
</template>

<script>
import {configInfo} from '@/api'

export default {
  data() {
    return {}
  },
  mounted() {
    // 测试接口
    configInfo()
  },
  methods: {
    testToast(type) {
      if (type === 1) {
        this.$showToast('显示')
      } else {
        this.$hideToast()
      }

    }
  }
}
</script>

<style lang="scss" scoped>
.container {
  display: flex;
  flex-direction: column;

  .test {
    font-size: 50px;
    color: green;
  }
}

</style>
